home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2.0 - Programmer's Utilities Power Pack / Delphi 2.0 Programmer's Utilities Power Pack.iso / e_to_l / itgraph / msvc15 / itgdmvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-15  |  2.3 KB  |  76 lines

  1. // itgdmvw.h : interface of the CItgDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CItgDemoView : public CFormView
  6. {
  7. protected: // create from serialization only
  8.     CItgDemoView();
  9.     DECLARE_DYNCREATE(CItgDemoView)
  10.  
  11. public:
  12.     //{{AFX_DATA(CItgDemoView)
  13.     enum { IDD = IDD_ITGDEMO_FORM };
  14.     CVBControl*    m_ITGraph;
  15.     //}}AFX_DATA
  16.  
  17. // Attributes
  18. public:
  19.     CItgDemoDoc* GetDocument();
  20.     CString m_sFindStr;
  21.     int m_bRandomSizedNodes;
  22.     int m_nPrintoutType; // 1 = Print Graph, 2 = Print Report
  23.     CRect rcGraph, rcPrintout, rcPage_G, rcPage_P;
  24.     CPoint ptPix_G, ptPix_P;
  25.     int nPages_X, nPages_Y;
  26.     int mInches_X, mInches_Y;
  27.  
  28. // Operations
  29. public:
  30.     void FindNode(CWnd *parWnd, CString sFindStr);
  31.     void RandomTree(int NodeCount);
  32.     void RandomDirected(int NodeCount);
  33.     int AskToSave();
  34.  
  35. // Implementation
  36. public:
  37.     virtual ~CItgDemoView();
  38. #ifdef _DEBUG
  39.     virtual void AssertValid() const;
  40.     virtual void Dump(CDumpContext& dc) const;
  41. #endif
  42.  
  43. protected:
  44.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  45.  
  46.     // Printing support
  47.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  48.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  49.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.     virtual void OnPrint(CDC* pDC, CPrintInfo*);
  51.  
  52. // Generated message map functions
  53. protected:
  54.     //{{AFX_MSG(CItgDemoView)
  55.     afx_msg void OnSize(UINT nType, int cx, int cy);
  56.     afx_msg void OnItemconnectItgraph1(UINT, int, CWnd*, LPVOID);
  57.     afx_msg void OnKeypressItgraph1(UINT, int, CWnd*, LPVOID);
  58.     afx_msg void OnItemclickItgraph1(UINT, int, CWnd*, LPVOID);
  59.     afx_msg void OnClickItgraph1(UINT, int, CWnd*, LPVOID);
  60.     afx_msg void OnSelectrectItgraph1(UINT, int, CWnd*, LPVOID);
  61.     afx_msg void OnItemdblclickItgraph1(UINT, int, CWnd*, LPVOID);
  62.     afx_msg void OnDblclickItgraph1(UINT, int, CWnd*, LPVOID);
  63.     afx_msg void OnItemmousemoveItgraph1(UINT, int, CWnd*, LPVOID);
  64.     afx_msg void OnMousedownItgraph1(UINT, int, CWnd*, LPVOID);
  65.     afx_msg void OnLinedblclickItgraph1(UINT, int, CWnd*, LPVOID);
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68. };
  69.  
  70. #ifndef _DEBUG  // debug version in itgdmvw.cpp
  71. inline CItgDemoDoc* CItgDemoView::GetDocument()
  72.    { return (CItgDemoDoc*)m_pDocument; }
  73. #endif
  74.  
  75. /////////////////////////////////////////////////////////////////////////////
  76.